/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 任务执行记录附件表Entity
 * @author panda
 * @version 2017-12-08
 */
public class TaskExecRecordAtta extends DataEntity<TaskExecRecordAtta> {
	
	private static final long serialVersionUID = 1L;
	private String taskMainId;		// 任务ID
	private String deviceMainId;		// 设备ID
	private String devchkItemId;		// 设备检修项ID
	private String devchkAnswerId;		// 设备检修回答ID
	private String attaUrl;		// 附件链接
	
	public TaskExecRecordAtta() {
		super();
	}

	public TaskExecRecordAtta(String id){
		super(id);
	}

	@Length(min=0, max=64, message="任务ID长度必须介于 0 和 64 之间")
	public String getTaskMainId() {
		return taskMainId;
	}

	public void setTaskMainId(String taskMainId) {
		this.taskMainId = taskMainId;
	}
	
	@Length(min=0, max=64, message="设备ID长度必须介于 0 和 64 之间")
	public String getDeviceMainId() {
		return deviceMainId;
	}

	public void setDeviceMainId(String deviceMainId) {
		this.deviceMainId = deviceMainId;
	}
	
	@Length(min=0, max=64, message="设备检修项ID长度必须介于 0 和 64 之间")
	public String getDevchkItemId() {
		return devchkItemId;
	}

	public void setDevchkItemId(String devchkItemId) {
		this.devchkItemId = devchkItemId;
	}
	
	@Length(min=0, max=64, message="设备检修回答ID长度必须介于 0 和 64 之间")
	public String getDevchkAnswerId() {
		return devchkAnswerId;
	}

	public void setDevchkAnswerId(String devchkAnswerId) {
		this.devchkAnswerId = devchkAnswerId;
	}
	
	@Length(min=0, max=500, message="附件链接长度必须介于 0 和 500 之间")
	public String getAttaUrl() {
		return attaUrl;
	}

	public void setAttaUrl(String attaUrl) {
		this.attaUrl = attaUrl;
	}
	
}